package com.mypj.base.entity.dto;

import lombok.Data;
import lombok.ToString;
import org.apache.http.cookie.Cookie;

import java.util.Map;

@Data
@ToString
public class HttpInfo {

    public HttpInfo(int code, String message) {
        this.code = code;
        this.message = message;
        this.result = null;
    }


    public HttpInfo(int code, String message, String result) {
        this.code = code;
        this.message = message;
        this.result = result;
    }

    public HttpInfo(int code, String message, String result, Map<String, Cookie> cookieMap) {
        this.code = code;
        this.message = message;
        this.result = result;
        this.cookieMap = cookieMap;
    }

    private int code;
    private String message;
    private String result;
    private Map<String, Cookie> cookieMap;
}
